package com.hst.capacity.infra.persistence.jpa.franchisee;

import com.hst.capacity.domain.model.entity.auth.UserEntity;
import com.hst.capacity.domain.model.entity.driver.DriverCarEntity;
import com.hst.capacity.domain.model.entity.franchisee.FranchiseeUserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface FranchiseeUserRepository extends JpaRepository<FranchiseeUserEntity, String>, JpaSpecificationExecutor<FranchiseeUserEntity> {

//    List<FranchiseeUserEntity> findAllByIdFranchisee(String idFranchisee);

    FranchiseeUserEntity findByUser(UserEntity user);

    FranchiseeUserEntity findByUserId(String userId);

}
